<script setup lang="ts">
import AsideLayer from '../components/AsideLayer.vue'
import HeaderLayer from '../components/HeaderLayer.vue'
import { ref, onMounted, onUpdated } from 'vue'
import { useRoute } from 'vue-router'
const route = useRoute()
let m = ref('')
onMounted(() => {
  m.value = String(route.meta.title)
  // console.log(m)
})
onUpdated(() => {
  m.value = String(route.meta.title)
})
</script>

<template>
  <el-container style="height: 100%">
    <el-aside width="220px">
      <AsideLayer></AsideLayer>
    </el-aside>
    <el-container>
      <el-header style="height: 80px">
        <HeaderLayer :info="m"></HeaderLayer>
      </el-header>
      <el-main class="main">
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<style scoped>
.main {
  width: 1700px;
  background-color: #f8f8f8;
}

.ro {
  /* height: 100%; */
  /* outline: 1px solid green; */
  /* background-color: #fff; */
  /* box-sizing: border-box;
  margin-right: 20px; */
}

::-webkit-scrollbar {
  width: 4px;
  height: 0px;
}

::-webkit-scrollbar-track {
  background: #f6f6f6;
  border-radius: 2px;
}

::-webkit-scrollbar-thumb {
  background: #00a468;
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: #747474;
}

::-webkit-scrollbar-corner {
  background: #f6f6f6;
}
</style>
